﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%namespace YouHP.Model%>
<%namespace YouHP.Utility%>
<%template _header%>
<link rel="stylesheet" href="/support/common/jquery-ui.css" type="text/css" />
<link rel="stylesheet" href="/support/common/impromptu.css" type="text/css" />
<script type="text/javascript"" src="/support/common/jquery.js"></script>
<script type="text/javascript"" src="/support/common/impromptu.js"></script>
<script type="text/javascript"" src="/support/common/ui.core.js"></script>
<script type="text/javascript"" src="/support/common/ui.datepicker.js"></script>
<script type="text/javascript"" src="/support/common/ui.datepicker-zh-CN.js"></script>
<script type="text/javascript" src="/support/common/ui.draggable.js"></script> 
<script type="text/javascript" src="/support/common/ui.resizable.js"></script> 
<script type="text/javascript" src="/support/common/ui.dialog.js"></script> 
<script type="text/javascript" src="/support/swfobject/open-flash-chart.js"></script>
<script language="javascript">
    $(function(){ 
        $.datepicker.setDefaults($.extend({ showMonthAfterYear: false }, $.datepicker.regional['zh-CN']));
        $("#date_1").datepicker({changeMonth: true,	changeYear: true});
        $("#date_2").datepicker({ changeMonth: true, changeYear: true });
    });
</script>
<style>
    .symchartcontent {WIDTH: 773px;  TEXT-ALIGN: center; margin:0 auto;}
    .symchartleft { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FLOAT: left; PADDING-BOTTOM: 0px; MARGIN: 0px; WIDTH: 70px; PADDING-TOP: 0px; BACKGROUND-COLOR: #ffffff; TEXT-ALIGN: center;}
    .symchartright { MARGIN: 0px; BACKGROUND-COLOR: #cccccc; TEXT-ALIGN: center; width:700px;}
	.SymptomNameLink {font-size:9pt; font-weight:bold; color:Blue}
</style>
<div class="layout-cols2">
<%template _memmenu%>
	<div class="pannelcontent">

		<div class="pcontent">
		<div class="panneldetail">
	     <%template _memrecordermenu%>
	     	
        <div class="pannelbody">
	    <div class="box">
            <div class="caption">
                <%csharp%>TempUrl = "/SymptomHistory/Index.aspx"; <%/csharp%>
                <span class="floatRight" ><a href="{this.GetUrl(TempUrl)}"><font color="#ffffff">编辑</font></a></span>
                症状图表
            </div>
            <div class="symchartcontent" id="chart">                
                <div id="Symptomchart1"></div>
                <script type="text/javascript">
                    var g_sSymptomUrl="/Pages/Alpha/SymptomHistory/SymptomHistory.aspx"
                    swfobject.embedSWF("/support/swfchart/open-flash-chart.swf", "Symptomchart1", "680", "250","9.0.0", "expressInstall.swf",{'id':'1','flashready':'OnSymptomFlashReady'},{wmode: "transparent"});
                </script>
                <script type="text/javascript" src="/support/swfobject/symptom.js"></script>
            </div>
        </div>
	    
	    <div class="box">
	        <div class="caption">
	            更新主要症状
	        </div>
	        <div class="content">
	                <div style="line-height:30px"><b>选择日期：</b><input class="box-var validate-date" id="date_1" maxlength="10" size="10" name="date_1" style="vertical-align:top;" value="{DateTime.Today.ToString("yyyy-MM-dd")}" />
                    </div>
                    <div>
                        <table class="tbl-data">
	                        <tbody>
	                         <tr>
								<TD>操作</TD>
	                            <td>症状</td>
	                            <td><div class="symptomlogo">&nbsp;<li>无<p class="none"></p></li><li>轻度<p class="mild"></p></li><li>中度<p class="moderate"></p></li><li>重度<p class="severe"></p></li></div></td>
				
	                         </tr>
					        <%csharp%>
					            string tempids="";
					             foreach(DiseaseSymptomInfo syminfo in PrimarySymptomList)
					             {
					                tempids += (syminfo.SymptomId+",");
				                    <%/csharp%>
				                    <tr>
				                        <input type="hidden" id="sym{syminfo.SymptomId}" name="sym{syminfo.SymptomId}" />
										<td><a href="List.aspx?symid={syminfo.SymptomId}"><font style="color:blue">查看/修改</font></a></td>
				                        <td style="text-align:left">{syminfo.SymptomName}</td>
				                        <td>
					                       <div class="symptomsel">
					                           <p><a href="javascript:changesymsel({syminfo.SymptomId},1, {Constants.SYMPTOM_NONE});"  class="none" id="sym{syminfo.SymptomId}_1"><font color="#CCCCCC">无</font></a></p>
					                           <p><a href="javascript:changesymsel({syminfo.SymptomId},2, {Constants.SYMPTOM_MILD});"id="sym{syminfo.SymptomId}_2"  class="mild"  title="{syminfo.MildDescription}"><font color="#CCCCCC">轻度</font></a></p>
					                           <p><a href="javascript:changesymsel({syminfo.SymptomId},3, {Constants.SYMPTOM_MODERATE});" id="sym{syminfo.SymptomId}_3"  class="moderate" title="{syminfo.ModerateDescription}"><font color="#CCCCCC">中度</font></a></p>
					                           <p><a href="javascript:changesymsel({syminfo.SymptomId},4, {Constants.SYMPTOM_SEVERE});" id="sym{syminfo.SymptomId}_4" class="severe" title="{syminfo.SevereDescription}"><font color="#CCCCCC">重度</font></a></p>
					                       </div>
                    					   
                                        </td>
                                    </tr>
				                    <%csharp%>
					             }
					        <%/csharp%>
					      
    	                    <tr>
    	                        <td class="table-box-left"><input type="hidden" id="ID_SYMPTOMIDS_1" value="{tempids}"/></td>
    	                        <td colspan="2" style="text-align:center"> 
                                   <a href="javascript:OnUpdateSymptom(1);" class="yellowbutton">提交</a>
                                </td>
    	                    </tr>   
	                       </tbody>
	                    </table> 
                    </div>
			</div>
		</div> <!--end box-->
	    
		<div class="box">

	         <div class="caption">
	            更新其他症状  
	        </div>
			<div class="content">
				<div style="line-height:30px"><a id="ID_ADD_SYSPTOM" href="javascript:AddSymptom();"><font color="blue"><b>添加新症状</b></font></a><div>
				 <%csharp%>
				if (CurrentOtherSymptomList.Count == 0 ){
				<%/csharp%>
					<div style="line-height:30px">请先<a href="javascript:AddSymptom();"><font color="blue"><b>添加新症状</b></font></a><div>
				<%csharp%>}
					else{
				<%/csharp%>
				<div style="line-height:30px"><b>选择日期：</b><input class="box-var validate-date" id="date_2" maxlength="10" size="10" name="date_2" style="vertical-align:top;" value="{DateTime.Today.ToString("yyyy-MM-dd")}" /></div>
				<div>
				 <table  class="tbl-data">
					  <tr>
						<TD>操作</TD>
						<td>症状</td>
						<td><div class="symptomlogo">&nbsp;<li>无<p class="none"></p></li><li>轻度<p class="mild"></p></li><li>中度<p class="moderate"></p></li><li>重度<p class="severe"></p></li></div></td>
					 </tr>
					<%csharp%>
						tempids="";
						 foreach(SymptomHistoryInfo syminfo in CurrentOtherSymptomList)
						 {
							tempids += (syminfo.SymptomId+",");
							<%/csharp%>
							<tr>
								<td><a href="List.aspx?symid={syminfo.SymptomId}"><font style="color:blue">查看/修改</font></a></td>
								<td style="text-align:left">{syminfo.SymptomName}</td>
								<td >
								   <input type="hidden" id="sym{syminfo.SymptomId}" name="sym{syminfo.SymptomId}" />
								  <div class="symptomsel">
									   <p><a href="javascript:changesymsel({syminfo.SymptomId},1, {Constants.SYMPTOM_NONE});" class="none" id="sym{syminfo.SymptomId}_1"><img id="c_sym{syminfo.SymptomId}_1" src="/support/alpha/images/spacer.gif" /><font color="#CCCCCC">无</font></a><span id="d_none"></span></p>
									   <p><a href="javascript:changesymsel({syminfo.SymptomId},2, {Constants.SYMPTOM_MILD});"  class="mild" id="sym{syminfo.SymptomId}_2"><img id="c_sym{syminfo.SymptomId}_2" src="/support/alpha/images/spacer.gif" /><font color="#CCCCCC">轻度</font></a><span id="SymDegreeDesp{syminfo.SymptomId}_1"></span></p>
									   <p><a href="javascript:changesymsel({syminfo.SymptomId},3, {Constants.SYMPTOM_MODERATE});"  class="moderate" id="sym{syminfo.SymptomId}_3"><img id="c_sym{syminfo.SymptomId}_3" src="/support/alpha/images/spacer.gif" /><font color="#CCCCCC">中度</font></a><span id="SymDegreeDesp{syminfo.SymptomId}_2"></span></p>
									   <p><a href="javascript:changesymsel({syminfo.SymptomId},4, {Constants.SYMPTOM_SEVERE});" class="severe" id="sym{syminfo.SymptomId}_4"><img id="c_sym{syminfo.SymptomId}_4" src="/support/alpha/images/spacer.gif" /><font color="#CCCCCC">重度</font></a><span id="SymDegreeDesp{syminfo.SymptomId}_3"></span></p>
								   </div>
								   
								</td>
							</tr>
							<%csharp%>
						 }
					<%/csharp%>
					<tr>
						<td class="table-box-left"><input type="hidden" id="ID_SYMPTOMIDS_2" value="{tempids}"/></td>
						<td colspan=2> 
						   <a href="javascript:OnUpdateSymptom(2);" class="yellowbutton">提交</a>
						</td>
					</tr>  
					</tbody>
				  </table> 
				  </div>
				  <%csharp%>}	<%/csharp%>
			</div>
	           
    	            <font color="blue">提示：如果本站没有提供您所需要录入的症状信息，请发送邮件本站！Email：</font>
                        <a href="mailto:service@youhp.com"><font color="blue">service@youhp.com</font></a>
    	       </div> 
	        </div>    
	    </div>
	</div>
		</div>
		</div>
	</div>
</div>
<div id="DIALOG"><iframe FRAMEBORDER=0 SCROLLING=NO ></iframe></div>
<script type="text/javascript" src="/support/Alpha/Js/symptomhistory/index.js"></script>

<%template _footer%>